import type { AppRouteModule } from '/@/router/types';
import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const teacher: AppRouteModule = {
  path: '/teacher',
  name: 'teacher',
  component: LAYOUT,
  redirect: '/teacher/list',
  meta: {
    icon: 'ion:menu-outline',
    title: t('routes.teacher.teacher'),
    orderNo: 10,
  },
  children: [
    {
      path: 'teacherList',
      name: 'teacherList',
      component: () => import('/@/views/teacher/index.vue'),
      meta: {
        title: t('routes.teacher.teacherList'),
      },
    },
    {
      path: 'teacherAdd',
      name: 'teacherAdd',
      component: () => import('/@/views/teacher/TeacherSave.vue'),
      meta: {
        title: t('routes.teacher.teacherSave'),
      },
    },
    {
      path: 'teacherDesc/:id',
      name: 'teacherDesc',
      component: () => import('/@/views/teacher/Description.vue'),
      meta: {
        title: t('routes.teacher.teacherDesc'),
        hideTab: true,
        hideMenu: true,
      },
    },
    {
      path: 'teacherEdit/:id',
      name: 'teacherEdit',
      component: () => import('/@/views/teacher/TeacherEdit.vue'),
      meta: {
        title: t('routes.teacher.teacherEdit'),
        hideTab: true,
        hideMenu: true,
      },
    },
  ],
};
export default teacher;
